/*include:js\mathJax\load*/
/*include:enterprise\showQuestion*/
fastCSharp.Copy(Exam,{
ShowProblem:function(Id)
	{
	var SkinValue=fastCSharp.PageView.SkinValue.exam.Remote,Problems=SkinValue.SkinValue.Problems,Problem;
	for(var Index=Problems.length;Index;)
		{
		var NextProblem=Problems[--Index];
		if(NextProblem.IsCurrent=NextProblem.Id==Id)	Problem=NextProblem;
		}
	SkinValue.Problems.Set();
	var Answer=Problem.UserAnswer();
	if(Answer)
		{
		var Judge=Problem.UserJudge();
		(this.Ace=new fastCSharp.Ace({Id:'programContent'+Problem.Id,Code:Answer?Answer.Content:'',IsReadOnly:1})).Show();
		this.Ace.Editor.setTheme('ace/theme/eclipse');
		if(Judge)	this.Ace.Editor.getSession().setMode('ace/mode/'+diantou.judge.GetLanguage(Judge.Judge.Language).AceMode);
		}
	}
		});
fastCSharp.OnModule(['ace.ace']);